{include file="public:header" /}
<form id="info_form" action="{:url('editDo')}" method="post" enctype="multipart/form-data">
<div class="pad_lr_10">
	<div class="col_tab">
		<ul class="J_tabs tab_but cu_li">
			<li class="current">基本信息</li>
			<li><a href="{:url('index')}">返回列表</a></li>
		</ul>
		<div class="J_panes">
			<div class="content_list pad_10">
				<table width="100%" cellspacing="0" class="table_form">

		            <tr>
						<th width="100">提问标题 :</th>
						<td>
							{$info.title}
						</td>
					</tr>
					<tr>
						<th>提问时间 :</th>
						<td>{$info.create_time|date='Y-m-d',###}</td>
					</tr>
					<tr>
						<th>所属楼盘 :</th>
						<td>{$info.house.title}</td>
					</tr>
					<tr>
						<th>详细内容 :</th>
						<td>
							{$info.content}
						</td>
					</tr>
					<tr>
						<th>状态 :</th>
		 				<td>
							<label><input type="radio" name="status" class="radio_style" value="1" {if condition="$info.status eq 1"}checked="checked"{/if}> 通过</label>&nbsp;&nbsp;
							<label><input type="radio" name="status" class="radio_style" value="0" {if condition="$info.status eq 0"}checked="checked"{/if}> 待审</label>
							<label><input type="radio" name="option" class="radio_style" value="1" {if condition="$info.option eq 1"}checked="checked"{/if}> 已解决</label>&nbsp;&nbsp;
							<label><input type="radio" name="option" class="radio_style" value="0" {if condition="$info.option eq 0"}checked="checked"{/if}> 待解决</label>
						</td>
					</tr>
					<tr>
						<th></th>
						<td>
							<input type="submit" value="提交" id="dosubmit" name="" class="btn btn_submit">
						</td>
					</tr>
				</table>
			</div>
			<div class="pad_lr_10" style="margin-top:10px;">
				<div class="J_tablelist table_list" data-acturi="{:url('Answer/ajaxEdit')}">
					<table width="100%" cellspacing="0">
						<thead>
						<tr>
							<th width=25><input type="checkbox" id="checkall_t" class="J_checkall"></th>
							<th align="left">回答内容</th>
							<th width="120">回答人</th>
							<th width=120>回答时间</th>
							<th width="40">状态</th>
							<th width="120">操作</th>
						</tr>
						</thead>
						<tbody>
						{volist name="lists" id="val"}
						<tr>
							<td align="center"><input type="checkbox" class="J_checkitem" value="{$val.id}"></td>
							<td align="left">{$val.content}</td>
							<td align="center">{$val.user.nickname}</td>
							<td align="center">{$val.create_time|date='Y-m-d H:i:s',###}</td>
							<td align="center"><img data-tdtype="toggle" data-id="{$val.id}" data-field="status" data-value="{$val.status}" src="__IMG__/toggle_{if condition="$val.status eq 0"}disabled{else/}enabled{/if}.gif" /></td>
							<td align="center">
								<a data-uri="{:url('Answer/delete',['id'=>$val['id']])}" data-msg="确定要删除 该记录 吗？" data-acttype="ajax" class="J_confirmurl" href="javascript:void(0);">删除</a>
							</td>
						</tr>
						{/volist}
						</tbody>
					</table>
				</div>
			</div>
        </div>
		<div class="btn_wrap_fixed">
			<label class="select_all"><input type="checkbox" name="checkall" class="J_checkall">全选/取消</label>
			<input type="button" class="btn" data-tdtype="batch_action" data-acttype="ajax" data-uri="{:url('Answer/delete')}" data-name="id" data-msg="确定要删除该条记录么?" value="删除" />
			<div id="pages"></div>
		</div>
	</div>
</div>
<input type="hidden" name="id" id="id" value="{$info.id}" />
</form>
{include file="public:footer" /}

</body>
</html>